package com.crocodileQ.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.crocodileQ.blog.mapper.TagsImgMapper;
import com.crocodileQ.blog.domain.BlogTagsImg;
import com.crocodileQ.blog.service.ITagsImgService;

/**
 * 标签表Service业务层处理
 * 
 * @author crocodilePole
 * @date 2025-06-09
 */
@Service
public class TagsImgServiceImpl implements ITagsImgService 
{
    @Autowired
    private TagsImgMapper tagsImgMapper;

    /**
     * 查询标签表
     * 
     * @param id 标签表主键
     * @return 标签表
     */
    @Override
    public BlogTagsImg selectTagsImgById(Long id)
    {
        return tagsImgMapper.selectTagsImgById(id);
    }

    /**
     * 查询标签表列表
     * 
     * @param blogTagsImg 标签表
     * @return 标签表
     */
    @Override
    public List<BlogTagsImg> selectTagsImgList(BlogTagsImg blogTagsImg)
    {
        return tagsImgMapper.selectTagsImgList(blogTagsImg);
    }

    /**
     * 新增标签表
     * 
     * @param blogTagsImg 标签表
     * @return 结果
     */
    @Override
    public int insertTagsImg(BlogTagsImg blogTagsImg)
    {
        return tagsImgMapper.insertTagsImg(blogTagsImg);
    }

    /**
     * 修改标签表
     * 
     * @param blogTagsImg 标签表
     * @return 结果
     */
    @Override
    public int updateTagsImg(BlogTagsImg blogTagsImg)
    {
        return tagsImgMapper.updateTagsImg(blogTagsImg);
    }

    /**
     * 批量删除标签表
     * 
     * @param ids 需要删除的标签表主键
     * @return 结果
     */
    @Override
    public int deleteTagsImgByIds(Long[] ids)
    {
        return tagsImgMapper.deleteTagsImgByIds(ids);
    }

    /**
     * 删除标签表信息
     * 
     * @param id 标签表主键
     * @return 结果
     */
    @Override
    public int deleteTagsImgById(Long id)
    {
        return tagsImgMapper.deleteTagsImgById(id);
    }
}
